/* 全局样式 */
/* UnoCSS will be loaded by the plugin */

/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body, #app {
  height: 100%;
  font-family: 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* 深色模式下的滚动条 */
.dark ::-webkit-scrollbar-track {
  background: #2d2d2d;
}

.dark ::-webkit-scrollbar-thumb {
  background: #4a4a4a;
}

.dark ::-webkit-scrollbar-thumb:hover {
  background: #5a5a5a;
}

/* Element Plus 组件自定义样式 */
.el-menu {
  border-right: none !important;
}

.el-menu-item {
  border-radius: 6px;
  margin: 2px 8px;
}

.el-menu-item.is-active {
  background-color: var(--el-color-primary-light-9);
  color: var(--el-color-primary);
}

/* 卡片样式 */
.card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 20px;
}

.dark .card {
  background: var(--el-bg-color-page);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 状态指示器 */
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
}

.status-dot.success {
  background-color: var(--el-color-success);
}

.status-dot.warning {
  background-color: var(--el-color-warning);
}

.status-dot.danger {
  background-color: var(--el-color-danger);
}

.status-dot.info {
  background-color: var(--el-color-info);
}

/* 进度条样式 */
.progress-container {
  padding: 10px;
  border-radius: 6px;
  background: var(--el-color-info-light-9);
  border: 1px solid var(--el-color-info-light-7);
}

/* 表格样式 */
.el-table {
  border-radius: 6px;
  overflow: hidden;
}

.el-table .el-table__header-wrapper {
  background: var(--el-fill-color-light);
}

/* 按钮组样式 */
.button-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* 表单样式 */
.form-section {
  margin-bottom: 24px;
}

.form-section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--el-text-color-primary);
  border-bottom: 1px solid var(--el-border-color-light);
  padding-bottom: 8px;
}

/* 统计卡片 */
.stat-card {
  text-align: center;
  padding: 20px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.stat-card .stat-value {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 8px;
}

.stat-card .stat-label {
  font-size: 14px;
  color: var(--el-text-color-secondary);
}

.dark .stat-card {
  background: var(--el-bg-color-page);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 响应式布局 */
@media (max-width: 768px) {
  .el-aside {
    width: 180px !important;
  }
  
  .el-main {
    padding: 16px;
  }
  
  .button-group {
    justify-content: center;
  }
  
  .stat-card {
    padding: 16px;
  }
  
  .stat-card .stat-value {
    font-size: 24px;
  }
}

/* 动画效果 */
.fade-enter-active, .fade-leave-active {
  transition: opacity 0.3s ease;
}

.fade-enter-from, .fade-leave-to {
  opacity: 0;
}

.slide-enter-active, .slide-leave-active {
  transition: transform 0.3s ease;
}

.slide-enter-from {
  transform: translateX(-20px);
}

.slide-leave-to {
  transform: translateX(20px);
}

/* 加载状态 */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 200px;
  color: var(--el-text-color-secondary);
}

.loading-container .loading-text {
  margin-top: 16px;
  font-size: 14px;
}

/* 空状态 */
.empty-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 300px;
  color: var(--el-text-color-secondary);
}

.empty-container .empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.empty-container .empty-text {
  font-size: 16px;
  margin-bottom: 8px;
}

.empty-container .empty-description {
  font-size: 14px;
  opacity: 0.8;
}
